package myorg.myrpc.client.thrift;

import com.facebook.swift.codec.*;
import com.facebook.swift.codec.ThriftField.Requiredness;
import java.util.*;

import static com.google.common.base.Objects.toStringHelper;

@ThriftStruct("PersonBean")
public final class PersonBean
{
    public PersonBean() {
    }

    private boolean New;

    @ThriftField(value=1, name="_new", requiredness=Requiredness.REQUIRED)
    public boolean isNew() { return New; }

    @ThriftField
    public void setNew(final boolean New) { this.New = New; }

    private int modified;

    @ThriftField(value=2, name="modified", requiredness=Requiredness.REQUIRED)
    public int getModified() { return modified; }

    @ThriftField
    public void setModified(final int modified) { this.modified = modified; }

    private int initialized;

    @ThriftField(value=3, name="initialized", requiredness=Requiredness.REQUIRED)
    public int getInitialized() { return initialized; }

    @ThriftField
    public void setInitialized(final int initialized) { this.initialized = initialized; }

    private Integer id;

    @ThriftField(value=4, name="id", requiredness=Requiredness.OPTIONAL)
    public Integer getId() { return id; }

    @ThriftField
    public void setId(final Integer id) { this.id = id; }

    private String name;

    @ThriftField(value=5, name="name", requiredness=Requiredness.OPTIONAL)
    public String getName() { return name; }

    @ThriftField
    public void setName(final String name) { this.name = name; }

    private Integer sex;

    @ThriftField(value=6, name="sex", requiredness=Requiredness.OPTIONAL)
    public Integer getSex() { return sex; }

    @ThriftField
    public void setSex(final Integer sex) { this.sex = sex; }

    private String password;

    @ThriftField(value=7, name="password", requiredness=Requiredness.OPTIONAL)
    public String getPassword() { return password; }

    @ThriftField
    public void setPassword(final String password) { this.password = password; }

    private String birthdate;

    @ThriftField(value=8, name="birthdate", requiredness=Requiredness.OPTIONAL)
    public String getBirthdate() { return birthdate; }

    @ThriftField
    public void setBirthdate(final String birthdate) { this.birthdate = birthdate; }

    private String mobilePhone;

    @ThriftField(value=9, name="mobilePhone", requiredness=Requiredness.OPTIONAL)
    public String getMobilePhone() { return mobilePhone; }

    @ThriftField
    public void setMobilePhone(final String mobilePhone) { this.mobilePhone = mobilePhone; }

    private Integer papersType;

    @ThriftField(value=10, name="papersType", requiredness=Requiredness.OPTIONAL)
    public Integer getPapersType() { return papersType; }

    @ThriftField
    public void setPapersType(final Integer papersType) { this.papersType = papersType; }

    private String papersNum;

    @ThriftField(value=11, name="papersNum", requiredness=Requiredness.OPTIONAL)
    public String getPapersNum() { return papersNum; }

    @ThriftField
    public void setPapersNum(final String papersNum) { this.papersNum = papersNum; }

    private String remark;

    @ThriftField(value=12, name="remark", requiredness=Requiredness.OPTIONAL)
    public String getRemark() { return remark; }

    @ThriftField
    public void setRemark(final String remark) { this.remark = remark; }

    private String createTime;

    @ThriftField(value=13, name="createTime", requiredness=Requiredness.OPTIONAL)
    public String getCreateTime() { return createTime; }

    @ThriftField
    public void setCreateTime(final String createTime) { this.createTime = createTime; }

    private String updateTime;

    @ThriftField(value=14, name="updateTime", requiredness=Requiredness.OPTIONAL)
    public String getUpdateTime() { return updateTime; }

    @ThriftField
    public void setUpdateTime(final String updateTime) { this.updateTime = updateTime; }

    @Override
    public String toString()
    {
        return toStringHelper(this)
            .add("New", New)
            .add("modified", modified)
            .add("initialized", initialized)
            .add("id", id)
            .add("name", name)
            .add("sex", sex)
            .add("password", password)
            .add("birthdate", birthdate)
            .add("mobilePhone", mobilePhone)
            .add("papersType", papersType)
            .add("papersNum", papersNum)
            .add("remark", remark)
            .add("createTime", createTime)
            .add("updateTime", updateTime)
            .toString();
    }
}
